<div class="form-group">
    <label class="col-sm-2 control-label">粉丝</label>
    <div class="col-sm-9 col-xs-12">
        <img src='{$member['avatar']}' style='width:50px;height:50px;padding:1px;border:1px solid #ccc' />
        {$member['nickname']}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">会员等级</label>
    <div class="col-sm-9 col-xs-12">
        <div class='form-control-static'>
            {if empty($member['level'])}
            {php echo empty($shop['levelname'])?'普通会员':$shop['levelname']}
            {else}
            {php echo pdo_fetchcolumn('select levelname from '.tablename('ewei_shop_member_level').' where id=:id limit 1',array(':id'=>$member['level']))}
            {/if}
        </div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">会员分组</label>
    <div class="col-sm-9 col-xs-12">
        <div class='form-control-static'>
            {if empty($member['groupid'])}
            无分组
            {else}
            {php echo pdo_fetchcolumn('select groupname from '.tablename('ewei_shop_member_group').' where id=:id limit 1',array(':id'=>$member['groupid']))}
            {/if}
        </div>
    </div>
</div>


<div class="form-group">
    <label class="col-sm-2 control-label">真实姓名</label>
    <div class="col-sm-9 col-xs-12">
        <div class='form-control-static'>{$member['realname']}</div>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label">手机号码</label>
    <div class="col-sm-9 col-xs-12">
        <div class='form-control-static'>{$member['mobile']}</div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">微信号</label>
    <div class="col-sm-9 col-xs-12">
        <div class='form-control-static'>{$member['weixin']}</div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">积分</label>
    <div class="col-sm-3">
        <div class='form-control-static'>{$member['credit1']}</div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">余额</label>
    <div class="col-sm-3">
        <div class='form-control-static'>{$member['credit2']}</div>
    </div>
</div> <div class="form-group">
    <label class="col-sm-2 control-label">注册时间</label>
    <div class="col-sm-9 col-xs-12">
        <div class='form-control-static'>{php echo date("Y-m-d H:i:s",$member['createtime'])}</div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">关注状态</label>
    <div class="col-sm-9 col-xs-12">
        <div class='form-control-static'>
            {php $followed = m('user')->followed($member['openid'])}
            {if !$followed}
            {if empty($member['uid'])}
            <label class='label label-default'>未关注</label>
            {else}
            <label class='label label-warning'>取消关注</label>
            {/if}
            {else}
            <label class='label label-success'>已关注</label>
            {/if}

        </div>
    </div>
</div>

{if $diyform_flag == 1}
    <div class="form-group-title">自定义表单信息</div>
    {php $datas = iunserializer($member['diymemberdata'])}
    {loop $fields $key $value}
    <div class="form-group">
        <label class="col-sm-2 control-label">{php echo $value['tp_name']}</label>
        <div class="col-sm-9 col-xs-12">
            <div class="form-control-static">
                {template 'diyform/diyform'}
            </div>
        </div>
    </div>
    {/loop}
{/if}